@extends('admin.layouts.wap')
@section('title', '公众号详情')
@section('content')
<div class="mview-order-content" style="margin-bottom:0;">
    <div class="mview-order-item">
        <img src="{{ $officialDetial->avatar }}">
        <div class="content">
            <h3>{{ $officialDetial->name }}</h3>
            <div class="info">
                @if($officialDetial->service_type_info == 2)
                <font class="m-bg-success">服务号</font>
                @else
                <font class="m-bg-primary">订阅号</font>
                @endif
                <p>{{ $officialDetial->principal_name }}</p>
            </div>
        </div>
    </div>
</div>
<div class="m-card" style="margin-top: 15px;">
    <div class="m-navbar-header">
        <ul id="officialDetial">
            <li data="1" class="active">基本信息</li>
            <li data="2">小程序列表</li>
        </ul>
    </div>
    <div id="card-item-1">
        <div class="m-info-item" style="flex-direction:row;">
            <label>APPID：</label>
            <div class="text">
                <p id="appid">{{ $officialDetial->appid }}</p>
            </div>
        </div>
        <div class="m-info-item" style="flex-direction:row;">
            <label>公众号原始ID：</label>
            <div class="text">
                <p>{{ $officialDetial->original_id }}</p>
            </div>
        </div>
        <div class="m-info-item" style="flex-direction:row;">
            <label>公众号认证类型：</label>
            <div class="text">
                @if($officialDetial->verify_type_info < 0)
                <p class="m-text-danger">未认证</p>
                @elseif($officialDetial->verify_type_info == 0)
                <p class="m-text-success">微信认证</p>
                @elseif($officialDetial->verify_type_info == 1)
                <p>新浪微博认证</p>
                @elseif($officialDetial->verify_type_info == 3)
                <p>已资质认证通过但还未通过名称认证</p>
                @elseif($officialDetial->verify_type_info == 4)
                <p>已资质认证通过、还未通过名称认证，但通过了新浪微博认证</p>
                @else
                <p class="m-text-danger">未认证</p>
                @endif
            </div>
        </div>
        <div class="m-info-item" style="flex-direction:row;">
            <label>公众号主体：</label>
            <div class="text">
                <p>{{ $officialDetial->principal_name }}</p>
            </div>
        </div>
        <div class="m-info-item" style="flex-direction:row;">
            <label>公众号微信：</label>
            <div class="text">
                <p>{{ empty($officialDetial->alias) ? "-" : $officialDetial->alias; }}</p>
            </div>
        </div>
        <div class="m-info-item" style="flex-direction:row;">
            <label>绑定时间：</label>
            <div class="text">
                <p>{{ $officialDetial->created_at }}</p>
            </div>
        </div>
        <div class="m-info-item">
            <label>公众号签名：</label>
            <div class="text">
                <p>{{ $officialDetial->signature }}</p>
            </div>
        </div>
        <div class="m-form-item">
            <a class="m-form-btn m-mr-1" href="/admin/miniapps/miniapp_register_gzh?app_id={{ $officialDetial->appid }}">注册微信小程序</a>
            <div class="m-form-btn m-btn-danger" onclick='mviewNotification("info","删除公众号提醒","删除公众号后将会从公众号列表移除,如想要取消授权请前往公众号后台主动取消授权！","确认删除","取消",{"type":"official_delete","appid":"{{ $officialDetial->appid }}"});'>删除微信公众号</div>
        </div>
    </div>
    <div id="card-item-2"></div>
</div>
<script type="text/javascript" src="/assets/admin/js/dev/template_setting.86512.js?v={{ time() }}"></script>
@endsection
